home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 83
/
MINAMI83.iso
/
Extra
/
winamp532.exe
/
$R0
/
Winamp Modern
/
scripts
/
shadecontrol.maki
(
.txt
)
< prev
next >
Wrap
Winamp Compiled Maki Script
|
2006-02-02
|
11KB
|
321 lines
/* Note: a decompiler is no invitation to steal code.
Please respect the the copyright */
#include "std.mi"
Global ConfigAttribute ConfigAttribute17;
Global ConfigAttribute ConfigAttribute18;
Global ConfigAttribute ConfigAttribute19;
Global ConfigAttribute ConfigAttribute20;
Global ConfigAttribute ConfigAttribute21;
Global ConfigAttribute ConfigAttribute22;
Global ConfigAttribute ConfigAttribute23;
Global ConfigAttribute ConfigAttribute24;
Global ConfigAttribute ConfigAttribute25;
Global ConfigAttribute ConfigAttribute26;
Global ConfigAttribute ConfigAttribute27;
Global ConfigAttribute ConfigAttribute28;
Global ConfigAttribute ConfigAttribute29;
Global ConfigAttribute ConfigAttribute30;
Global ConfigAttribute ConfigAttribute31;
Global ConfigAttribute ConfigAttribute32;
Global ConfigAttribute ConfigAttribute33;
Global ConfigAttribute ConfigAttribute34;
Global ConfigAttribute ConfigAttribute35;
Global ConfigAttribute ConfigAttribute36;
Global ConfigAttribute ConfigAttribute37;
Global ConfigAttribute ConfigAttribute38;
Global ConfigAttribute ConfigAttribute39;
Global ConfigAttribute ConfigAttribute40;
Global ConfigAttribute ConfigAttribute41;
Global ConfigAttribute ConfigAttribute42;
Global ConfigAttribute ConfigAttribute43;
Global Group Group116;
Global Group Group117;
Global Group Group118;
Global Group Group119;
Global Group Group120;
Global Group Group121;
Global Group Group122;
Global Group Group123;
Global Group Group124;
Global Button Button125;
Global Button Button126;
Global Button Button127;
Global Layout Layout128;
Global Layout Layout129;
Global Layer Layer130;
Global Timer Timer131;
Global Text Text132;
Global Button Button133;
Function func242();
Function func2505(Int 0);
Function func4044();
func242()
{
ConfigItem ConfigItem61;
ConfigItem ConfigItem46;
ConfigAttribute ConfigAttribute79;
ConfigAttribute ConfigAttribute73;
ConfigItem ConfigItem52;
ConfigItem ConfigItem49;
ConfigAttribute ConfigAttribute77;
ConfigItem ConfigItem58;
ConfigItem ConfigItem69;
ConfigItem ConfigItem67;
ConfigItem ConfigItem55;
ConfigAttribute ConfigAttribute84;
ConfigItem ConfigItem71;
ConfigAttribute ConfigAttribute72;
ConfigAttribute ConfigAttribute74;
ConfigItem ConfigItem64;
ConfigAttribute ConfigAttribute75;
ConfigAttribute ConfigAttribute78;
ConfigItem46 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigItem49 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigItem52 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigItem55 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigItem58 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigItem61 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
ConfigItem64 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
ConfigItem67 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
ConfigItem69 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
ConfigItem71 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
ConfigAttribute72 = ConfigItem69.newAttribute(( "Winamp\ Modern"), ( ""));
ConfigAttribute72.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
ConfigAttribute73 = ConfigItem46.newAttribute(( "Drawers"), ( ""));
ConfigAttribute73.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
ConfigAttribute74 = ConfigItem46.newAttribute(( "Menus"), ( ""));
ConfigAttribute74.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
ConfigAttribute75 = ConfigItem46.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
ConfigAttribute75.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
ConfigAttribute77 = ConfigItem46.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
ConfigAttribute77.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
ConfigAttribute78 = ConfigItem46.newAttribute(( "Notifications"), ( ""));
ConfigAttribute78.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
ConfigAttribute79 = ConfigItem46.newAttribute(( "Songticker"), ( ""));
ConfigAttribute79.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
ConfigAttribute17 = ConfigItem49.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
ConfigAttribute18 = ConfigItem49.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
ConfigAttribute84 = ConfigItem49.newAttribute(( "sep1"), ( ""));
ConfigAttribute84.setData(( "\-"));
ConfigAttribute21 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
ConfigAttribute22 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
ConfigAttribute23 = ConfigItem49.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
if(( ConfigAttribute21.getData() == ( "1"))) {
ConfigAttribute21.onDataChanged();
} else {
ConfigAttribute22.onDataChanged();
}
ConfigAttribute25 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
ConfigAttribute26 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
ConfigAttribute27 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
ConfigAttribute84 = ConfigItem46.newAttribute(( "sep1"), ( ""));
ConfigAttribute84.setData(( "\-"));
ConfigAttribute19 = ConfigItem46.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
ConfigAttribute20 = ConfigItem46.newAttribute(( "Detach\ Video\ Window"), ( "0"));
ConfigAttribute24 = ConfigItem71.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
ConfigAttribute84 = ConfigItem46.newAttribute(( "sep2"), ( ""));
ConfigAttribute84.setData(( "\-"));
ConfigAttribute31 = ConfigItem46.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
ConfigAttribute28 = ConfigItem55.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
ConfigAttribute29 = ConfigItem55.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
ConfigAttribute30 = ConfigItem55.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
ConfigAttribute33 = ConfigItem58.newAttribute(( "Open\ Context\ Menu"), ( "1"));
ConfigAttribute32 = ConfigItem58.newAttribute(( "Open\ Configuration"), ( "0"));
ConfigAttribute36 = ConfigItem61.newAttribute(( "Show\ always"), ( "0"));
ConfigAttribute35 = ConfigItem61.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
ConfigAttribute34 = ConfigItem61.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
ConfigAttribute37 = ConfigItem61.newAttribute(( "Never\ show"), ( "1"));
ConfigAttribute84 = ConfigItem61.newAttribute(( "sep1"), ( ""));
ConfigAttribute84.setData(( "\-"));
ConfigAttribute41 = ConfigItem61.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
ConfigAttribute38 = ConfigItem67.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
ConfigAttribute39 = ConfigItem67.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
ConfigAttribute40 = ConfigItem67.newAttribute(( "Notifications\ display\ time"), ( "2000"));
ConfigAttribute42 = ConfigItem64.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
ConfigAttribute43 = ConfigItem64.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
return Null;
}
System.onScriptLoaded()
{
func242();
Group116 = System.getScriptGroup();
Layout128 = Group116.getParentLayout();
Layout129 = Group116.getParentLayout().getContainer().getLayout(( "normal"));
Group117 = Group116.findObject(( "shadeX1"));
Group118 = Group116.findObject(( "shadeX2"));
Group119 = Group116.findObject(( "shadeX3"));
Button127 = Group116.findObject(( "shadeeq"));
Group120 = Group116.findObject(( "shadedisplay"));
Group121 = Group116.findObject(( "shadedisplay2"));
Group122 = Group116.findObject(( "shadetimer"));
Group123 = Group116.findObject(( "shadeticker"));
Group124 = Group116.findObject(( "shadevis"));
Button125 = Group116.findObject(( "shade\.expand"));
Button126 = Group116.findObject(( "shade\.reduce"));
Button133 = Group116.findObject(( "shadect"));
Text132 = Group116.findObject(( "SongtickerShade"));
Timer131 = ( new Timer);
Timer131.setDelay(1000);
Layer130 = Group116.findObject(( "volumebarShade"));
Layer130.setXmlParam(( "w"), System.integerToString(( ( ( System.getVolume() / 255) * 40) + 5)));
func4044();
return Null;
}
System.onScriptUnloading()
{
delete Timer131;
return Null;
}
Timer131.onTimer()
{
Text132.setText(( ""));
Timer131.stop();
return Null;
}
Group116.onResize(int x, int y, int w, int h)
{
func2505(w);
return Null;
}
Button127.onLeftClick()
{
ConfigAttribute24.setData(( "1"));
return Null;
}
func2505(Int 0)
{
Int Int164;
Int Int161;
Int161 = System.getPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
if(Int161) {
Button125.show();
Button126.hide();
} else {
Button125.hide();
Button126.show();
}
Group117.hide();
Group118.hide();
Group119.hide();
Group120.hide();
Group121.hide();
Group122.hide();
Group123.hide();
Group124.hide();
if(( Int158 < 400)) {
Int164 = ( Int158 - 356);
Group120.setXmlParam(( "w"), System.integerToString(Int164));
Group120.show();
Group122.show();
if(( Int158 < 420)) {
Group123.show();
Group123.setXmlParam(( "w"), System.integerToString(Int164));
if(( Int158 < 560)) {
Group120.hide();
Group121.setXmlParam(( "w"), System.integerToString(( Int164 - 45)));
Group121.show();
Group123.setXmlParam(( "w"), System.integerToString(( Int164 - 56)));
if(Int161) {
Group117.setXmlParam(( "x"), ( "\-100"));
Group117.show();
if(( Int158 < 583)) {
Group121.setXmlParam(( "w"), System.integerToString(( Int164 - 68)));
Group123.setXmlParam(( "w"), System.integerToString(( Int164 - 79)));
Group117.setXmlParam(( "x"), ( "\-123"));
Group118.setXmlParam(( "x"), ( "\-80"));
Group118.show();
if(( Int158 < 642)) {
Group121.setXmlParam(( "w"), System.integerToString(( Int164 - 127)));
Group123.setXmlParam(( "w"), System.integerToString(( Int164 - 138)));
Group117.setXmlParam(( "x"), ( "\-182"));
Group118.setXmlParam(( "x"), ( "\-139"));
Group119.setXmlParam(( "x"), ( "\-116"));
Group119.show();
if(( Int158 < 660)) {
Group124.setXmlParam(( "x"), System.integerToString(( - 257)));
Group124.show();
Group123.setXmlParam(( "w"), System.integerToString(( Int164 - 194)));
}
}
}
} else {
Group121.setXmlParam(( "w"), System.integerToString(Int164));
Group124.setXmlParam(( "x"), System.integerToString(( - 130)));
Group124.show();
Group123.setXmlParam(( "w"), System.integerToString(( Int164 - 66)));
}
}
}
}
return Null;
}
System.onKeyDown(String key)
{
if(( ( ( System.Strleft(key, 4) == ( "ctrl")) && ( System.strsearch(key, ( "\+w")) != ( - 1))) && ( Layout128.isActive() || Layout129.isActive()))) {
if(Layout128.isVisible()) {
Layout128.getContainer().switchToLayout(( "normal"));
} else {
Layout128.getContainer().switchToLayout(( "shade"));
}
complete;
}
return Null;
}
Button125.onLeftClick()
{
System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
func2505(Layout128.getGuiW());
return Null;
}
Button126.onLeftClick()
{
System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 1);
func2505(Layout128.getGuiW());
return Null;
}
System.onVolumeChanged(int newvol)
{
Layer130.setXmlParam(( "w"), System.integerToString(( ( ( newvol / 255) * 40) + 5)));
Timer131.start();
Text132.setText(( ( ( "Volume\:") + System.integerToString(( newvol / ( 2.54999995231628)))) + ( "\%")));
return Null;
}
ConfigAttribute42.onDataChanged()
{
func4044();
return Null;
}
func4044()
{
if(( ConfigAttribute42.getData() == ( "1"))) {
Text132.setXmlParam(( "ticker"), ( "1"));
} else {
Text132.setXmlParam(( "ticker"), ( "0"));
}
return Null;
}
Button133.onRightButtonDown(int x, int y)
{
System.triggerAction(Button133, ( "ThemesSlotsMenu"), ( ""));
complete;
return Null;
}